<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}在线考试系统{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    {% block extra_css %}{% endblock %}
    <style>
        .question-nav {
            height: calc(100vh - 56px);
            overflow-y: auto;
        }
        .question-nav .nav-link {
            border-radius: 0;
            padding: 0.5rem 1rem;
            margin-bottom: 2px;
        }

        .question-group {
            margin-bottom: 15px;
        }

        .question-group .bg-light {
            background-color: #e9ecef !important;
            padding: 8px 15px;
            font-size: 0.9rem;
            border-left: 4px solid #007bff;
        }
        .question-nav .nav-link.answered {
            background-color: #d4edda;
            color: #155724;
        }
        .question-content {
            height: calc(100vh - 56px);
            overflow-y: auto;
            padding: 20px;
        }
        .timer {
            font-size: 1.2rem;
            font-weight: bold;
        }
        .exam-status {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px;
            background-color: #f8f9fa;
            border-top: 1px solid #dee2e6;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
        <div class="container-fluid">
            <a class="navbar-brand" href="{% url 'exam_system:dashboard' %}">在线考试系统</a>
            <div class="d-flex align-items-center">
                <span class="text-light me-3">{{ request.user.examinee.name }}</span>
                <a href="{% url 'exam_system:logout' %}" class="btn btn-outline-light btn-sm">退出</a>
            </div>
        </div>
    </nav>

    {% block content %}{% endblock %}

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    {% block extra_js %}{% endblock %}
</body>
</html>